package mm.apk.libmm.presenter

import android.content.Intent
import mm.apk.libmm.view.IBaseView

/**
 * Descriptions：
 * StartVersion：
 * <p>
 * Author：ChenME
 * Date：2019-11-15
 * Email：ibelieve1210@163.com
 */
class BasePresenter<V : IBaseView> : LifecycleCallback {

    protected lateinit var view: V

    fun loadView(view: V) {
        this.view = view
    }

    override fun onCreate() {
        loadView(view)
    }

    override fun onStart() {
    }

    override fun onResume() {
    }

    override fun onPause() {
    }

    override fun onStop() {
    }

    override fun onDestroy() {
    }

    override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
    }
}